package com.windbell.memory;

import java.util.HashMap;
import java.util.Map;

public class MemoryManager {
	private static Map cacheData = new HashMap();

	public static boolean addData(String key, Object value) {
		if (cacheData.put(key, value) != null) {
			return true;
		}
		return false;
	}

	public static Object getDataByKey(String key) {
		return cacheData.get(key);
	}
}
